Skip to content

Conversation

@vigith
Copy link
Member

@vigith vigith commented Dec 5, 2025

Send 3 payloads

(pynumaflow-lite) ➜  sourcetransform git:(source-transformer) ✗ curl -kq -X POST -d "hello world" https://localhost:8443/vertices/in
Handling connection for 8443
{"message":"Data received successfully","id":"019ae76a-2cf5-7542-a42e-58e7e8686b28"}
(pynumaflow-lite) ➜  sourcetransform git:(source-transformer) ✗  curl -kq -X POST -d "hello world" https://localhost:8443/vertices/in
Handling connection for 8443
{"message":"Data received successfully","id":"1"}
(pynumaflow-lite) ➜  sourcetransform git:(source-transformer) ✗ curl -kq -X POST -H "x-numaflow-id: 1" -H "x-numaflow-event-time: 63006726000" -d "hello world" https://localhost:8443/vertices/in
Handling connection for 8443
{"message":"Data received successfully","id":"1"}

Check it is reflected correctly

(pynumaflow-lite) ➜  sourcetransform git:(source-transformer) ✗ kl sourcetransform-event-filter-in-0-jo1x3 -c transformer
Registering signal handlers <_UnixSelectorEventLoop running=True closed=False debug=True>
Starting NumaflowCore: event_loop=Py(0xffffb27b9710)
Got event time: 2025-12-04 03:31:26.581799+00:00, it is after year 2022, so forwarding to after_year_2022
Messages { messages: [Message { keys: Some([]), value: [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100], event_time: 2023-01-01T00:00:00Z, tags: Some(["after_year_2022"]) }] }
Got event time: 2022-09-12 18:18:46+00:00, it is within year 2022, so forwarding to within_year_2022
Messages { messages: [Message { keys: Some([]), value: [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 38, 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100], event_time: 2022-01-01T00:00:00Z, tags: Some(["within_year_2022"]) }] }
Got event time: 1971-12-31 05:52:06+00:00, it is before 2022, so dropping
Messages { messages: [Message { keys: None, value: [], event_time: 1971-12-31T05:52:06Z, tags: Some(["U+005C__DROP__"]) }] }

Signed-off-by: Vigith Maurice <vigith@gmail.com>
Signed-off-by: Vigith Maurice <vigith@gmail.com>
@vigith vigith requested review from ab93 and whynowy as code owners December 5, 2025 02:38
@vigith vigith requested a review from BulkBeing December 5, 2025 02:38
@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.85%. Comparing base (24ce158) to head (486f7aa).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #294      +/-   ##
==========================================
- Coverage   93.88%   93.85%   -0.04%     
==========================================
  Files          66       66              
  Lines        3009     3009              
  Branches      155      155              
==========================================
- Hits         2825     2824       -1     
- Misses        134      135       +1     
  Partials       50       50              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vigith vigith merged commit 41f6c0f into main Dec 5, 2025
13 checks passed
@vigith vigith deleted the source-transformer-manifests branch December 5, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants